package com.miaosha.service;

import com.miaosha.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.miaosha.entity.dto.RoleDto;

import java.util.List;


public interface RoleService extends IService<Role> {

    RoleDto saveWithPermissions(RoleDto roleDto);

    List<RoleDto> listRoleDto();

    void deleteWithPermissions(Long id);

    RoleDto getByIdWithPermissions(Long roleId);

    void updateWithPermissions(RoleDto roleDto);
}
